evaluate functions using synthetic division